import http from "@/api";
import { Sorter } from "@/api/interface/city/citySorter";
// 分拣员模块

// 获取分拣员列表
export const getSorterListAPI = (params: Sorter.SearchParams) => {
  return http.get<Sorter.Row[]>("/manager/sorter", params);
};
// 新增分拣员
export const addSorterAPI = (data: Sorter.EditParams) => {
  return http.post("/manager/sorter", data);
};
// 修改分拣员
export const editSorterAPI = (data: Sorter.EditParams) => {
  return http.put("/manager/sorter", data);
};
// 删除分拣员
export const deleteSorterAPI = (id: string) => {
  return http.delete(`/manager/sorter/${id}`);
};
// 修改手机号
export const updatePhoneAPI = (data: Sorter.UpdatePhoneParams) => {
  return http.post("/manager/sorter/updatePhoneNo", data);
};
